package com.xiaoran.springcloud.alibaba.service;

import com.xiaoran.springcloud.alibaba.domain.CommResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "seata-account-service")
public interface AccountService {
    @PostMapping("/account/deleter")
    CommResult delete(@RequestParam("user_id") Long user_id, @RequestParam("money")BigDecimal money);
}
